package com.zdzx.model.service.content.vo;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zdzx.model.entity.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "banner", description = "banner")
@TableName("content_banner")
public class Banner extends BaseEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value = "banner图片路径", name = "imagePath")
	private String imagePath;
	@ApiModelProperty(value = "banner连接", name = "link")
	private String link;
	@ApiModelProperty(value = "desc", name = "desc")
	@TableField("`desc`")
	private String desc;
	@ApiModelProperty(value = "排序", name = "sort")
	private int sort;
	/*
	public void setImagePath(String imagePath,boolean flag) {
		if(!StringUtils.isEmpty(imagePath)&&!imagePath.contains(SystemConfig.ossIp)&&flag)
		this.imagePath = SystemConfig.ossIp+imagePath;
		else
		this.imagePath=imagePath;
	}
	public void setImagePath(String imagePath) {
		if(!StringUtils.isEmpty(imagePath)&&!imagePath.contains(SystemConfig.ossIp))
		this.imagePath = SystemConfig.ossIp+imagePath;
		else
		this.imagePath=imagePath;
	}*/

}
